home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 February / PC Shareware 1997-02.iso / programy / e! / technote / ewtech.$09 / ewtech.009
Encoding:
Text File  |  1995-03-05  |  1.8 KB  |  40 lines

  1. E! for Windows - Technical Note #009
  2. ***********************************************************************
  3. Available font sizes in Screen Font and Printer Font Setup dialog boxes
  4. ***********************************************************************
  5.  
  6. Some users complained about E! displaying only one possible font size
  7. for some fonts, while the corresponding Windows dialog box in COMMDLG.DLL
  8. displays multiple sizes.
  9.  
  10. When enumerating non-scalable fonts, Windows returns all possible sizes
  11. for the given font. These values are displayed in the dialog box.
  12.  
  13. The problem is different when enumerating scalable fonts. For those fonts,
  14. all sizes are theoretically possible (practically about 1000 possible
  15. sizes are available). Constructing such a list of values would waste time
  16. and memory.
  17.  
  18. The COMMDLG dialog box proposes some frequently used sizes. These are not
  19. values returned by the font itself. They are only sample or computed values
  20. hard-coded in COMMDLG.DLL.
  21.  
  22. EW works another way. It proposes the only (default) size returned by the
  23. system for that scalable font and allows entering any value in the
  24. relevant edit field. This does not mean that the user is limited in his
  25. choice when selecting a size. Any size can be entered for a scalable font.
  26. However, depending on the font, the size entered by the user may be
  27. rounded up to better match the font characteristics. This method makes
  28. font enumeration faster especially on systems where numerous scalable
  29. fonts are installed.
  30.  
  31. Patrick Philippot
  32. 08/12/93
  33.  
  34. Starting with E! 2.0, arbitrary font sizes are added to the Font Selection
  35. dialog box if Windows doesn't return more than one size. In that case, the
  36. size defaults to 12 points if no other previous setting exists.
  37.  
  38. Patrick Philippot
  39. 04/06/94
  40.